<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script src="/static/layui/layui.all.js"></script>
</head>
<body>
<p>打包命令：</p>
<label style="font-size: 9px;">&nbsp;&nbsp;&nbsp;&nbsp;mvn clean package -P test</label>
<br/>
<div class="layui-upload-drag" id="upload" style="margin-left: 20px;margin-top:20px;">
    <i class="layui-icon"></i>
    <p>点击上传，或将文件拖拽到此处</p>
</div>
<script>
    layui.upload.render({
        elem: '#upload',
        url: '/upload?id=' + {{.}},
        multiple: true,
        accept: 'file',
        before: function (obj) {
            layui.layer.load(1, {
                shade: [0.3, '#7a7a7a']
            });
        },
        done: function (res) {
            layui.layer.closeAll("loading")
            layui.layer.msg(res.msg);
        },
    });

</script>
</body>
</html>